Não sei se vou está falando besteira, mais que eu saiba sword não tem cargas.
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

info
Grupo: Campones
Registrado: 31/01/12
Posts: 20
Reputação: 0
Char no Tibia: Star vita

as swords encantadas tem
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

Sim pdc.
Dei uma pesquisada e acabei descobrindo, que a quantia máxima de charges é 100.
info
Grupo: Campones
Registrado: 31/01/12
Posts: 20
Reputação: 0
Char no Tibia: Star vita

mais no global e 1000 como aumenta '-' acho que e mais um bug desse tfs 3777 ...
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

No seu tfs atual o máximo é 100.
info
Grupo: Campones
Registrado: 31/01/12
Posts: 20
Reputação: 0
Char no Tibia: Star vita

sim eu olhei em um serv 0.3.6 e da 1000 cargas normal como aumenta no 0.4 377?
up
up
info
Grupo: Campones
Registrado: 27/05/10
Posts: 69
Reputação: +5
Char no Tibia: Pedro

Tipo ta 1000 ai né? tenta 10000.. quem sabe....
info
Grupo: Campones
Registrado: 31/01/12
Posts: 20
Reputação: 0
Char no Tibia: Star vita

não deu certo
Provavelmente vc terá que mexer nas sources, procure no arquivo weapons.cpp
Fala ai cara beleza?, tive esse problema recentemente ... mais consegui resolver.
Faz o seguinte :
Vai na pasta do seu server data/actions/scripts e cria um arquivo.lua com o nome enchanting copie e cole dele o seguinte :
local config = {
manaCost = 300,
soulCost = 2,
}
local spheres = {
[7759] = 7,
[7760] = 5,
[7761] = 6,
[7762] = 8
}
local enchantableGems = {2147, 2146, 2149, 2150}
local enchantableItems = {2383, 7383, 7384, 7406, 7402, 2429, 2430, 7389, 7380, 2454, 2423, 2445, 7415, 7392, 2391, 2544, 8905}
local enchantingAltars = {
{7504, 7505, 7506, 7507},
{7508, 7509, 7510, 7511},
{7516, 7517, 7518, 7519},
{7512, 7513, 7514, 7515}
}
local enchantedGems = {7760, 7759, 7761, 7762}
local enchantedItems = {
[2383] = {7744, 7763, 7854, 7869},
[7383] = {7745, 7764, 7855, 7870},
[7384] = {7746, 7765, 7856, 7871},
[7406] = {7747, 7766, 7857, 7872},
[7402] = {7748, 7767, 7858, 7873},
[2429] = {7749, 7768, 7859, 7874},
[2430] = {7750, 7769, 7860, 7875},
[7389] = {7751, 7770, 7861, 7876},
[7380] = {7752, 7771, 7862, 7877},
[2454] = {7753, 7772, 7863, 7878},
[2423] = {7754, 7773, 7864, 7879},
[2445] = {7755, 7774, 7865, 7880},
[7415] = {7756, 7775, 7866, 7881},
[7392] = {7757, 7776, 7867, 7882},
[2391] = {7758, 7777, 7868, 7883},
[2544] = {7840, 7839, 7850, 7838},
[8905] = {8906, 8907, 8909, 8908}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
-- The Elemental Spheres by MaXwEllDeN
if itemEx.actionid == 4119 and isInArray({7759, 7760, 7761, 7762}, item.itemid) then
if spheres[item.itemid] ~= p:getVocation():getId() then
return false
end
if isInArray({8894, 8895}, itemEx.itemid) then -- Mudar ID Ligado
doCreatureSay(cid, "Turn off the machine first.", TALKTYPE_MONSTER_SAY)
return false
end
local sto = p:getStorageValue(60026) == -1 and 1 or p:getStorageValue(60026) + 1
if sto == 21 then
return false
end
toPosition:sendMagicEffect(12)
p:setStorageValue(60026, sto)
iuid:remove(1)
return true
end
-- ######
if item.itemid == 2147 and itemEx.itemid == 2342 then
local targetItem = Item(itemEx.uid)
targetItem:transform(2343)
targetItem:decay()
Item(item.uid):remove(1)
toPosition:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
if item.itemid == 7760 and isInArray({9934, 10022}, itemEx.itemid) then
Item(itemEx.uid):transform(9933)
Item(item.uid):remove(1)
toPosition:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
if isInArray(enchantableGems, item.itemid) then
local subtype = item.type
if subtype == 0 then
subtype = 1
end
local mana = config.manaCost * subtype
if player:getMana() < mana then
player:sendCancelMessage(RETURNVALUE_NOTENOUGHMANA)
return false
end
local soul = config.soulCost * subtype
if player:getSoul() < soul then
player:sendCancelMessage(RETURNVALUE_NOTENOUGHSOUL)
return false
end
local targetId = table.find(enchantableGems, item.itemid)
if targetId == nil or not isInArray(enchantingAltars[targetId], itemEx.itemid) then
return false
end
player:addMana(-mana)
player:addSoul(-soul)
Item(item.uid):transform(enchantedGems[targetId])
player:addManaSpent(mana * configManager.getNumber(configKeys.RATE_MAGIC))
player:getPosition():sendMagicEffect(CONST_ME_HOLYDAMAGE)
return true
end
if item.itemid == 7761 and isInArray({9949, 9954}, itemEx.itemid) then
local targetItem = Item(itemEx.uid)
targetItem:transform(itemEx.itemid - 1)
targetItem:decay()
Item(item.uid):remove(1)
toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN)
return true
end
if isInArray(enchantedGems, item.itemid) then
if not isInArray(enchantableItems, itemEx.itemid) then
fromPosition:sendMagicEffect(CONST_ME_POFF)
return false
end
local targetId = table.find(enchantedGems, item.itemid)
if targetId == nil then
return false
end
local subtype = itemEx.type
if not isInArray({2544, 8905}, itemEx.itemid) then
subtype = 1000
end
local targetItem = Item(itemEx.uid)
targetItem:transform(enchantedItems[itemEx.itemid][targetId], subtype)
targetItem:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
Item(item.uid):remove(1)
return true
end
return false
end
logo em seguida voce vai em data/actions e coloca pra editar a actions.xml e adicione a tags :
<action fromid="2146" toid="2147" script="other/enchanting.lua"/> <action fromid="2149" toid="2150" script="other/enchanting.lua"/> <action fromid="7759" toid="7762" script="other/enchanting.lua"/>
pronto isso irá resolver =D
Deixa o rep+ se ajudei. Fui!
info
Grupo: Campones
Registrado: 31/01/12
Posts: 20
Reputação: 0
Char no Tibia: Star vita

vlw ![]()
esto com outro problema ainda pior quando as 1000 chages do encantamento acaba vira a arma que foi incandata e some depois de um hit
explo eu encanto minha spike sword quando gasto os 1000 hit ela vira a spike sword normal dnv porem se eu de mais 1 atk ela some.
oque fazer?
tenho esse problema msm sem o scrip do nykee29





info
Grupo: Campones
Registrado: 31/01/12
Posts: 20
Reputação: 0
Char no Tibia: Star vita
os plays encanta as armas que deveria vim com 1000 Charges mais só vem com 100 como arrumo isso?
<item id="7869" article="a" name="spike sword">
<attribute key="weight" value="5000"/>
<attribute key="defense" value="21"/>
<attribute key="attack" value="24"/>
<attribute key="weaponType" value="sword"/>
<attribute key="extradef" value="2"/>
<attribute key="elementEnergy" value="4"/>
<attribute key="charges" value="1000"/> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<attribute key="decayTo" value="2383"/>
<attribute key="showcharges" value="1"/>
</item>
11:47 You see a spike sword (Atk:24, Def:21 +2) that has 100 charges left. <<<<< só 100 :c
It weighs 50.00 oz.
It is temporarily enchanted with energy (20 physical + 4 energy damage).
ItemID: [7869].
DecayTo: [2383].